﻿using Microsoft.AspNetCore.Mvc;

namespace Testudo.WebApp.Controllers;

internal static class ControllerExtensions
{
    internal static ActionResult<T> FineResult<T>(this ControllerBase ctrl, T result)
    {
        return result == null ? ctrl.NotFound() : ctrl.Ok(result);
    }
}